<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" 
<&if $fb&>
xmlns:og="http://ogp.me/ns#"
xmlns:fb="https://www.facebook.com/2008/fbml"
<&/if&>
>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Trainerplz <&$title&></title>
<link type="text/css" href="/css/reset.css" rel="stylesheet"/>
<link type="text/css" href="/css/public.css" rel="stylesheet"/>
<link type="text/css" href="/css/pop.css" rel="stylesheet"/>
<&if $page_css&>
<link type="text/css" href="/css/<&$page_css&>" rel="stylesheet"/>
<&/if&>
<&if $page_css != "find-goals.css"&>
<link type="text/css" href="/css/dashboard.css" rel="stylesheet"/>
<&/if&>
<link type="text/css" href="/css/account.css" rel="stylesheet"/>

<link type="text/css" href="/css/fancybox/jquery.fancybox.css" rel="stylesheet"/>

<script type="text/javascript" src="/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="/js/jquery.fancybox.js" ></script>
<script type="text/javascript" src="/js/ajaxuploadfile.js" ></script>


<&if $fb&>
    <meta property="og:title" content="<&$fb.title&>"/>
    <meta property="og:type" content="activity"/>
    <meta property="og:url" content="<&$fb.url&>"/>
    <meta property="og:image" content="<&$fb.image&>"/>
    <meta property="og:site_name" content="<&$fb.site_name&>"/>
    <meta property="og:description"
          content="<&$fb.description&>"/>
<&/if&>
</head>

<body>
<!--header-->
	<div id="header">
    	<div class="header-box">
    		<a id="logo" <&if $username&>href="<&$web_site&>/user/dashboard"<&else&>href="<&$web_site&>"<&/if&>><span>beta</span></a>
        	<div id="nav"><a href="<&$web_site&>/goal/search">Browse goals</a>
            <&if $user_type == 1&>
            <&else&>
            <a href="#pop1" class="show_pop1">Post a goal</a>
            <&/if&>
            </div>
        	<div id="search">
        	<form >
            	<input type="text"  class="search-text" <&if !$arrArgs.keyword&>value="Search goals"<&else&>value="<&$arrArgs.keyword&>"<&/if&> id="keyword" />
                <input type="button"  class="search-submit" id="search_goal"/>
            </form>
        	</div>
        	<&if $username&>
            <div id="user-info"><a href="<&$web_site&>/user/dashboard" class="user-nickname"><&$username&></a><a href="<&$web_site&>/user/logout">Logout</a></div>
            <&else&>
            <div id="user-info"><a href="#pop-join" class="header_pop">Join</a> &nbsp;<a href="#pop-login" class="header_pop">Login</a></div>
            <&/if&>
        	</div>
    </div>
    <div id="fb-root"></div>
<!--header_over-->
